import '@/styles/common.scss'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import { lazyLoadingPlugin } from '@/directives'
import { componentPlugin } from './components'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
const pinia = createPinia()
const app = createApp(App)
app.use(ElementPlus, {
    locale: zhCn,
})
app.use(pinia)
pinia.use(piniaPluginPersistedstate)
app.use(router)
app.use(lazyLoadingPlugin)
app.use(componentPlugin)
app.mount('#app')

